unit uShowVideoForm;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs;

type
  TShowVideoForm = class(TForm)
    procedure FormDestroy(Sender: TObject);
  private

    { Private declarations }
  public
    VideoStockHandle: LongInt;
    { Public declarations }
  end;

procedure GetShowVideoForm(IPAddress: string);

implementation
uses uhikclient;

{$R *.dfm}

procedure GetShowVideoForm(IPAddress: string);
var
  ShowVideoForm: TShowVideoForm;
begin
  ShowVideoForm := TShowVideoForm.Create(Application);
  ShowVideoForm.VideoStockHandle := MP4_ClientSetInit(IPAddress, ShowVideoForm.Handle);
  ShowVideoForm.ShowModal;
end;

procedure TShowVideoForm.FormDestroy(Sender: TObject);
begin
  MP4_ClientStop(VideoStockHandle);
end;

end.

